#include <exception>
#include <iostream>
#include <thread>
using namespace std;

int Division(int x, int y)
{
    if (y == 0)
    {
        throw "抛异常";
    }
    return x / y;
}

void f1()
{
    throw 1;
}

void func(int n)
{
    int len, time;
    cin >> len >> time;
    cout << Division(len, time) << endl;
    f1();
}

int main()
{
    int n = 5;
    try
    {
        func(n);
    }
    catch (const char *e) // 抛异常才会执行这里的代码
    {
        cout << e << endl;
    }
    catch (...)
    {
        cout << "未知异常" << endl;
    }
    return 0;
}